package com.thinkgem.dingdan.common.test;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class StringUtils {

	public static void main(String[] args){
		String file = "adfasdf.jpg";
		System.out.println(new Date().getTime() + file.substring(file.lastIndexOf('.')));
		Map<String,Object> map = new HashMap<>();
		map.put("val", "1541474469366.jpg");
		map.put("flag", true);
		map.put("preffix", "http://phe7pr76y.bkt.clouddn.com/");
		
		JSONObject json = JSONObject.parseObject(JSON.toJSONString(map));
		System.out.println(json.toString());
		
	}
	
}
